echo '---Walidacja pliku changelog.xml---'
java -jar libs/liquibase.jar \
	--changeLogFile=${PWD}/src/main/java/com/epdb/changelog.xml \
	--classpath=libs/mysql-connector-java-5.1.22-bin.jar \
	--driver=com.mysql.jdbc.Driver \
	--url="jdbc:mysql://localhost:3306/tgaluszka?characterEncoding=utf-8" \
	--username=tgaluszka \
	--password=ala3 \
	validate

echo '---Migracja Bazy---'
java -jar libs/liquibase.jar \
	--changeLogFile=${PWD}/src/main/java/com/epdb/changelog.xml \
	--classpath=libs/mysql-connector-java-5.1.22-bin.jar \
	--driver=com.mysql.jdbc.Driver \
	--url="jdbc:mysql://localhost:3306/tgaluszka?characterEncoding=utf-8" \
	--username=tgaluszka \
	--password=ala3 \
	update
